package com.ttbj.cargo.po;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class CargoExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public CargoExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andCargoIdIsNull() {
            addCriterion("cargo_id is null");
            return (Criteria) this;
        }

        public Criteria andCargoIdIsNotNull() {
            addCriterion("cargo_id is not null");
            return (Criteria) this;
        }

        public Criteria andCargoIdEqualTo(Long value) {
            addCriterion("cargo_id =", value, "cargoId");
            return (Criteria) this;
        }

        public Criteria andCargoIdNotEqualTo(Long value) {
            addCriterion("cargo_id <>", value, "cargoId");
            return (Criteria) this;
        }

        public Criteria andCargoIdGreaterThan(Long value) {
            addCriterion("cargo_id >", value, "cargoId");
            return (Criteria) this;
        }

        public Criteria andCargoIdGreaterThanOrEqualTo(Long value) {
            addCriterion("cargo_id >=", value, "cargoId");
            return (Criteria) this;
        }

        public Criteria andCargoIdLessThan(Long value) {
            addCriterion("cargo_id <", value, "cargoId");
            return (Criteria) this;
        }

        public Criteria andCargoIdLessThanOrEqualTo(Long value) {
            addCriterion("cargo_id <=", value, "cargoId");
            return (Criteria) this;
        }

        public Criteria andCargoIdIn(List<Long> values) {
            addCriterion("cargo_id in", values, "cargoId");
            return (Criteria) this;
        }

        public Criteria andCargoIdNotIn(List<Long> values) {
            addCriterion("cargo_id not in", values, "cargoId");
            return (Criteria) this;
        }

        public Criteria andCargoIdBetween(Long value1, Long value2) {
            addCriterion("cargo_id between", value1, value2, "cargoId");
            return (Criteria) this;
        }

        public Criteria andCargoIdNotBetween(Long value1, Long value2) {
            addCriterion("cargo_id not between", value1, value2, "cargoId");
            return (Criteria) this;
        }

        public Criteria andCargoNumIsNull() {
            addCriterion("cargo_num is null");
            return (Criteria) this;
        }

        public Criteria andCargoNumIsNotNull() {
            addCriterion("cargo_num is not null");
            return (Criteria) this;
        }

        public Criteria andCargoNumEqualTo(String value) {
            addCriterion("cargo_num =", value, "cargoNum");
            return (Criteria) this;
        }

        public Criteria andCargoNumNotEqualTo(String value) {
            addCriterion("cargo_num <>", value, "cargoNum");
            return (Criteria) this;
        }

        public Criteria andCargoNumGreaterThan(String value) {
            addCriterion("cargo_num >", value, "cargoNum");
            return (Criteria) this;
        }

        public Criteria andCargoNumGreaterThanOrEqualTo(String value) {
            addCriterion("cargo_num >=", value, "cargoNum");
            return (Criteria) this;
        }

        public Criteria andCargoNumLessThan(String value) {
            addCriterion("cargo_num <", value, "cargoNum");
            return (Criteria) this;
        }

        public Criteria andCargoNumLessThanOrEqualTo(String value) {
            addCriterion("cargo_num <=", value, "cargoNum");
            return (Criteria) this;
        }

        public Criteria andCargoNumLike(String value) {
            addCriterion("cargo_num like", value, "cargoNum");
            return (Criteria) this;
        }

        public Criteria andCargoNumNotLike(String value) {
            addCriterion("cargo_num not like", value, "cargoNum");
            return (Criteria) this;
        }

        public Criteria andCargoNumIn(List<String> values) {
            addCriterion("cargo_num in", values, "cargoNum");
            return (Criteria) this;
        }

        public Criteria andCargoNumNotIn(List<String> values) {
            addCriterion("cargo_num not in", values, "cargoNum");
            return (Criteria) this;
        }

        public Criteria andCargoNumBetween(String value1, String value2) {
            addCriterion("cargo_num between", value1, value2, "cargoNum");
            return (Criteria) this;
        }

        public Criteria andCargoNumNotBetween(String value1, String value2) {
            addCriterion("cargo_num not between", value1, value2, "cargoNum");
            return (Criteria) this;
        }

        public Criteria andCargoOrderNumIsNull() {
            addCriterion("cargo_order_num is null");
            return (Criteria) this;
        }

        public Criteria andCargoOrderNumIsNotNull() {
            addCriterion("cargo_order_num is not null");
            return (Criteria) this;
        }

        public Criteria andCargoOrderNumEqualTo(String value) {
            addCriterion("cargo_order_num =", value, "cargoOrderNum");
            return (Criteria) this;
        }

        public Criteria andCargoOrderNumNotEqualTo(String value) {
            addCriterion("cargo_order_num <>", value, "cargoOrderNum");
            return (Criteria) this;
        }

        public Criteria andCargoOrderNumGreaterThan(String value) {
            addCriterion("cargo_order_num >", value, "cargoOrderNum");
            return (Criteria) this;
        }

        public Criteria andCargoOrderNumGreaterThanOrEqualTo(String value) {
            addCriterion("cargo_order_num >=", value, "cargoOrderNum");
            return (Criteria) this;
        }

        public Criteria andCargoOrderNumLessThan(String value) {
            addCriterion("cargo_order_num <", value, "cargoOrderNum");
            return (Criteria) this;
        }

        public Criteria andCargoOrderNumLessThanOrEqualTo(String value) {
            addCriterion("cargo_order_num <=", value, "cargoOrderNum");
            return (Criteria) this;
        }

        public Criteria andCargoOrderNumLike(String value) {
            addCriterion("cargo_order_num like", value, "cargoOrderNum");
            return (Criteria) this;
        }

        public Criteria andCargoOrderNumNotLike(String value) {
            addCriterion("cargo_order_num not like", value, "cargoOrderNum");
            return (Criteria) this;
        }

        public Criteria andCargoOrderNumIn(List<String> values) {
            addCriterion("cargo_order_num in", values, "cargoOrderNum");
            return (Criteria) this;
        }

        public Criteria andCargoOrderNumNotIn(List<String> values) {
            addCriterion("cargo_order_num not in", values, "cargoOrderNum");
            return (Criteria) this;
        }

        public Criteria andCargoOrderNumBetween(String value1, String value2) {
            addCriterion("cargo_order_num between", value1, value2, "cargoOrderNum");
            return (Criteria) this;
        }

        public Criteria andCargoOrderNumNotBetween(String value1, String value2) {
            addCriterion("cargo_order_num not between", value1, value2, "cargoOrderNum");
            return (Criteria) this;
        }

        public Criteria andCargoAmountIsNull() {
            addCriterion("cargo_amount is null");
            return (Criteria) this;
        }

        public Criteria andCargoAmountIsNotNull() {
            addCriterion("cargo_amount is not null");
            return (Criteria) this;
        }

        public Criteria andCargoAmountEqualTo(Integer value) {
            addCriterion("cargo_amount =", value, "cargoAmount");
            return (Criteria) this;
        }

        public Criteria andCargoAmountNotEqualTo(Integer value) {
            addCriterion("cargo_amount <>", value, "cargoAmount");
            return (Criteria) this;
        }

        public Criteria andCargoAmountGreaterThan(Integer value) {
            addCriterion("cargo_amount >", value, "cargoAmount");
            return (Criteria) this;
        }

        public Criteria andCargoAmountGreaterThanOrEqualTo(Integer value) {
            addCriterion("cargo_amount >=", value, "cargoAmount");
            return (Criteria) this;
        }

        public Criteria andCargoAmountLessThan(Integer value) {
            addCriterion("cargo_amount <", value, "cargoAmount");
            return (Criteria) this;
        }

        public Criteria andCargoAmountLessThanOrEqualTo(Integer value) {
            addCriterion("cargo_amount <=", value, "cargoAmount");
            return (Criteria) this;
        }

        public Criteria andCargoAmountIn(List<Integer> values) {
            addCriterion("cargo_amount in", values, "cargoAmount");
            return (Criteria) this;
        }

        public Criteria andCargoAmountNotIn(List<Integer> values) {
            addCriterion("cargo_amount not in", values, "cargoAmount");
            return (Criteria) this;
        }

        public Criteria andCargoAmountBetween(Integer value1, Integer value2) {
            addCriterion("cargo_amount between", value1, value2, "cargoAmount");
            return (Criteria) this;
        }

        public Criteria andCargoAmountNotBetween(Integer value1, Integer value2) {
            addCriterion("cargo_amount not between", value1, value2, "cargoAmount");
            return (Criteria) this;
        }

        public Criteria andCargoHeightIsNull() {
            addCriterion("cargo_height is null");
            return (Criteria) this;
        }

        public Criteria andCargoHeightIsNotNull() {
            addCriterion("cargo_height is not null");
            return (Criteria) this;
        }

        public Criteria andCargoHeightEqualTo(Float value) {
            addCriterion("cargo_height =", value, "cargoHeight");
            return (Criteria) this;
        }

        public Criteria andCargoHeightNotEqualTo(Float value) {
            addCriterion("cargo_height <>", value, "cargoHeight");
            return (Criteria) this;
        }

        public Criteria andCargoHeightGreaterThan(Float value) {
            addCriterion("cargo_height >", value, "cargoHeight");
            return (Criteria) this;
        }

        public Criteria andCargoHeightGreaterThanOrEqualTo(Float value) {
            addCriterion("cargo_height >=", value, "cargoHeight");
            return (Criteria) this;
        }

        public Criteria andCargoHeightLessThan(Float value) {
            addCriterion("cargo_height <", value, "cargoHeight");
            return (Criteria) this;
        }

        public Criteria andCargoHeightLessThanOrEqualTo(Float value) {
            addCriterion("cargo_height <=", value, "cargoHeight");
            return (Criteria) this;
        }

        public Criteria andCargoHeightIn(List<Float> values) {
            addCriterion("cargo_height in", values, "cargoHeight");
            return (Criteria) this;
        }

        public Criteria andCargoHeightNotIn(List<Float> values) {
            addCriterion("cargo_height not in", values, "cargoHeight");
            return (Criteria) this;
        }

        public Criteria andCargoHeightBetween(Float value1, Float value2) {
            addCriterion("cargo_height between", value1, value2, "cargoHeight");
            return (Criteria) this;
        }

        public Criteria andCargoHeightNotBetween(Float value1, Float value2) {
            addCriterion("cargo_height not between", value1, value2, "cargoHeight");
            return (Criteria) this;
        }

        public Criteria andCargoWeightIsNull() {
            addCriterion("cargo_weight is null");
            return (Criteria) this;
        }

        public Criteria andCargoWeightIsNotNull() {
            addCriterion("cargo_weight is not null");
            return (Criteria) this;
        }

        public Criteria andCargoWeightEqualTo(Float value) {
            addCriterion("cargo_weight =", value, "cargoWeight");
            return (Criteria) this;
        }

        public Criteria andCargoWeightNotEqualTo(Float value) {
            addCriterion("cargo_weight <>", value, "cargoWeight");
            return (Criteria) this;
        }

        public Criteria andCargoWeightGreaterThan(Float value) {
            addCriterion("cargo_weight >", value, "cargoWeight");
            return (Criteria) this;
        }

        public Criteria andCargoWeightGreaterThanOrEqualTo(Float value) {
            addCriterion("cargo_weight >=", value, "cargoWeight");
            return (Criteria) this;
        }

        public Criteria andCargoWeightLessThan(Float value) {
            addCriterion("cargo_weight <", value, "cargoWeight");
            return (Criteria) this;
        }

        public Criteria andCargoWeightLessThanOrEqualTo(Float value) {
            addCriterion("cargo_weight <=", value, "cargoWeight");
            return (Criteria) this;
        }

        public Criteria andCargoWeightIn(List<Float> values) {
            addCriterion("cargo_weight in", values, "cargoWeight");
            return (Criteria) this;
        }

        public Criteria andCargoWeightNotIn(List<Float> values) {
            addCriterion("cargo_weight not in", values, "cargoWeight");
            return (Criteria) this;
        }

        public Criteria andCargoWeightBetween(Float value1, Float value2) {
            addCriterion("cargo_weight between", value1, value2, "cargoWeight");
            return (Criteria) this;
        }

        public Criteria andCargoWeightNotBetween(Float value1, Float value2) {
            addCriterion("cargo_weight not between", value1, value2, "cargoWeight");
            return (Criteria) this;
        }

        public Criteria andCargoVolumeIsNull() {
            addCriterion("cargo_volume is null");
            return (Criteria) this;
        }

        public Criteria andCargoVolumeIsNotNull() {
            addCriterion("cargo_volume is not null");
            return (Criteria) this;
        }

        public Criteria andCargoVolumeEqualTo(Float value) {
            addCriterion("cargo_volume =", value, "cargoVolume");
            return (Criteria) this;
        }

        public Criteria andCargoVolumeNotEqualTo(Float value) {
            addCriterion("cargo_volume <>", value, "cargoVolume");
            return (Criteria) this;
        }

        public Criteria andCargoVolumeGreaterThan(Float value) {
            addCriterion("cargo_volume >", value, "cargoVolume");
            return (Criteria) this;
        }

        public Criteria andCargoVolumeGreaterThanOrEqualTo(Float value) {
            addCriterion("cargo_volume >=", value, "cargoVolume");
            return (Criteria) this;
        }

        public Criteria andCargoVolumeLessThan(Float value) {
            addCriterion("cargo_volume <", value, "cargoVolume");
            return (Criteria) this;
        }

        public Criteria andCargoVolumeLessThanOrEqualTo(Float value) {
            addCriterion("cargo_volume <=", value, "cargoVolume");
            return (Criteria) this;
        }

        public Criteria andCargoVolumeIn(List<Float> values) {
            addCriterion("cargo_volume in", values, "cargoVolume");
            return (Criteria) this;
        }

        public Criteria andCargoVolumeNotIn(List<Float> values) {
            addCriterion("cargo_volume not in", values, "cargoVolume");
            return (Criteria) this;
        }

        public Criteria andCargoVolumeBetween(Float value1, Float value2) {
            addCriterion("cargo_volume between", value1, value2, "cargoVolume");
            return (Criteria) this;
        }

        public Criteria andCargoVolumeNotBetween(Float value1, Float value2) {
            addCriterion("cargo_volume not between", value1, value2, "cargoVolume");
            return (Criteria) this;
        }

        public Criteria andCargoLongIsNull() {
            addCriterion("cargo_long is null");
            return (Criteria) this;
        }

        public Criteria andCargoLongIsNotNull() {
            addCriterion("cargo_long is not null");
            return (Criteria) this;
        }

        public Criteria andCargoLongEqualTo(Float value) {
            addCriterion("cargo_long =", value, "cargoLong");
            return (Criteria) this;
        }

        public Criteria andCargoLongNotEqualTo(Float value) {
            addCriterion("cargo_long <>", value, "cargoLong");
            return (Criteria) this;
        }

        public Criteria andCargoLongGreaterThan(Float value) {
            addCriterion("cargo_long >", value, "cargoLong");
            return (Criteria) this;
        }

        public Criteria andCargoLongGreaterThanOrEqualTo(Float value) {
            addCriterion("cargo_long >=", value, "cargoLong");
            return (Criteria) this;
        }

        public Criteria andCargoLongLessThan(Float value) {
            addCriterion("cargo_long <", value, "cargoLong");
            return (Criteria) this;
        }

        public Criteria andCargoLongLessThanOrEqualTo(Float value) {
            addCriterion("cargo_long <=", value, "cargoLong");
            return (Criteria) this;
        }

        public Criteria andCargoLongIn(List<Float> values) {
            addCriterion("cargo_long in", values, "cargoLong");
            return (Criteria) this;
        }

        public Criteria andCargoLongNotIn(List<Float> values) {
            addCriterion("cargo_long not in", values, "cargoLong");
            return (Criteria) this;
        }

        public Criteria andCargoLongBetween(Float value1, Float value2) {
            addCriterion("cargo_long between", value1, value2, "cargoLong");
            return (Criteria) this;
        }

        public Criteria andCargoLongNotBetween(Float value1, Float value2) {
            addCriterion("cargo_long not between", value1, value2, "cargoLong");
            return (Criteria) this;
        }

        public Criteria andCargoWideIsNull() {
            addCriterion("cargo_wide is null");
            return (Criteria) this;
        }

        public Criteria andCargoWideIsNotNull() {
            addCriterion("cargo_wide is not null");
            return (Criteria) this;
        }

        public Criteria andCargoWideEqualTo(Float value) {
            addCriterion("cargo_wide =", value, "cargoWide");
            return (Criteria) this;
        }

        public Criteria andCargoWideNotEqualTo(Float value) {
            addCriterion("cargo_wide <>", value, "cargoWide");
            return (Criteria) this;
        }

        public Criteria andCargoWideGreaterThan(Float value) {
            addCriterion("cargo_wide >", value, "cargoWide");
            return (Criteria) this;
        }

        public Criteria andCargoWideGreaterThanOrEqualTo(Float value) {
            addCriterion("cargo_wide >=", value, "cargoWide");
            return (Criteria) this;
        }

        public Criteria andCargoWideLessThan(Float value) {
            addCriterion("cargo_wide <", value, "cargoWide");
            return (Criteria) this;
        }

        public Criteria andCargoWideLessThanOrEqualTo(Float value) {
            addCriterion("cargo_wide <=", value, "cargoWide");
            return (Criteria) this;
        }

        public Criteria andCargoWideIn(List<Float> values) {
            addCriterion("cargo_wide in", values, "cargoWide");
            return (Criteria) this;
        }

        public Criteria andCargoWideNotIn(List<Float> values) {
            addCriterion("cargo_wide not in", values, "cargoWide");
            return (Criteria) this;
        }

        public Criteria andCargoWideBetween(Float value1, Float value2) {
            addCriterion("cargo_wide between", value1, value2, "cargoWide");
            return (Criteria) this;
        }

        public Criteria andCargoWideNotBetween(Float value1, Float value2) {
            addCriterion("cargo_wide not between", value1, value2, "cargoWide");
            return (Criteria) this;
        }

        public Criteria andCargoNameIsNull() {
            addCriterion("cargo_name is null");
            return (Criteria) this;
        }

        public Criteria andCargoNameIsNotNull() {
            addCriterion("cargo_name is not null");
            return (Criteria) this;
        }

        public Criteria andCargoNameEqualTo(String value) {
            addCriterion("cargo_name =", value, "cargoName");
            return (Criteria) this;
        }

        public Criteria andCargoNameNotEqualTo(String value) {
            addCriterion("cargo_name <>", value, "cargoName");
            return (Criteria) this;
        }

        public Criteria andCargoNameGreaterThan(String value) {
            addCriterion("cargo_name >", value, "cargoName");
            return (Criteria) this;
        }

        public Criteria andCargoNameGreaterThanOrEqualTo(String value) {
            addCriterion("cargo_name >=", value, "cargoName");
            return (Criteria) this;
        }

        public Criteria andCargoNameLessThan(String value) {
            addCriterion("cargo_name <", value, "cargoName");
            return (Criteria) this;
        }

        public Criteria andCargoNameLessThanOrEqualTo(String value) {
            addCriterion("cargo_name <=", value, "cargoName");
            return (Criteria) this;
        }

        public Criteria andCargoNameLike(String value) {
            addCriterion("cargo_name like", value, "cargoName");
            return (Criteria) this;
        }

        public Criteria andCargoNameNotLike(String value) {
            addCriterion("cargo_name not like", value, "cargoName");
            return (Criteria) this;
        }

        public Criteria andCargoNameIn(List<String> values) {
            addCriterion("cargo_name in", values, "cargoName");
            return (Criteria) this;
        }

        public Criteria andCargoNameNotIn(List<String> values) {
            addCriterion("cargo_name not in", values, "cargoName");
            return (Criteria) this;
        }

        public Criteria andCargoNameBetween(String value1, String value2) {
            addCriterion("cargo_name between", value1, value2, "cargoName");
            return (Criteria) this;
        }

        public Criteria andCargoNameNotBetween(String value1, String value2) {
            addCriterion("cargo_name not between", value1, value2, "cargoName");
            return (Criteria) this;
        }

        public Criteria andCargoIsCheckIsNull() {
            addCriterion("cargo_is_check is null");
            return (Criteria) this;
        }

        public Criteria andCargoIsCheckIsNotNull() {
            addCriterion("cargo_is_check is not null");
            return (Criteria) this;
        }

        public Criteria andCargoIsCheckEqualTo(Integer value) {
            addCriterion("cargo_is_check =", value, "cargoIsCheck");
            return (Criteria) this;
        }

        public Criteria andCargoIsCheckNotEqualTo(Integer value) {
            addCriterion("cargo_is_check <>", value, "cargoIsCheck");
            return (Criteria) this;
        }

        public Criteria andCargoIsCheckGreaterThan(Integer value) {
            addCriterion("cargo_is_check >", value, "cargoIsCheck");
            return (Criteria) this;
        }

        public Criteria andCargoIsCheckGreaterThanOrEqualTo(Integer value) {
            addCriterion("cargo_is_check >=", value, "cargoIsCheck");
            return (Criteria) this;
        }

        public Criteria andCargoIsCheckLessThan(Integer value) {
            addCriterion("cargo_is_check <", value, "cargoIsCheck");
            return (Criteria) this;
        }

        public Criteria andCargoIsCheckLessThanOrEqualTo(Integer value) {
            addCriterion("cargo_is_check <=", value, "cargoIsCheck");
            return (Criteria) this;
        }

        public Criteria andCargoIsCheckIn(List<Integer> values) {
            addCriterion("cargo_is_check in", values, "cargoIsCheck");
            return (Criteria) this;
        }

        public Criteria andCargoIsCheckNotIn(List<Integer> values) {
            addCriterion("cargo_is_check not in", values, "cargoIsCheck");
            return (Criteria) this;
        }

        public Criteria andCargoIsCheckBetween(Integer value1, Integer value2) {
            addCriterion("cargo_is_check between", value1, value2, "cargoIsCheck");
            return (Criteria) this;
        }

        public Criteria andCargoIsCheckNotBetween(Integer value1, Integer value2) {
            addCriterion("cargo_is_check not between", value1, value2, "cargoIsCheck");
            return (Criteria) this;
        }

        public Criteria andCargoIsXcheckIsNull() {
            addCriterion("cargo_is_xcheck is null");
            return (Criteria) this;
        }

        public Criteria andCargoIsXcheckIsNotNull() {
            addCriterion("cargo_is_xcheck is not null");
            return (Criteria) this;
        }

        public Criteria andCargoIsXcheckEqualTo(Integer value) {
            addCriterion("cargo_is_xcheck =", value, "cargoIsXcheck");
            return (Criteria) this;
        }

        public Criteria andCargoIsXcheckNotEqualTo(Integer value) {
            addCriterion("cargo_is_xcheck <>", value, "cargoIsXcheck");
            return (Criteria) this;
        }

        public Criteria andCargoIsXcheckGreaterThan(Integer value) {
            addCriterion("cargo_is_xcheck >", value, "cargoIsXcheck");
            return (Criteria) this;
        }

        public Criteria andCargoIsXcheckGreaterThanOrEqualTo(Integer value) {
            addCriterion("cargo_is_xcheck >=", value, "cargoIsXcheck");
            return (Criteria) this;
        }

        public Criteria andCargoIsXcheckLessThan(Integer value) {
            addCriterion("cargo_is_xcheck <", value, "cargoIsXcheck");
            return (Criteria) this;
        }

        public Criteria andCargoIsXcheckLessThanOrEqualTo(Integer value) {
            addCriterion("cargo_is_xcheck <=", value, "cargoIsXcheck");
            return (Criteria) this;
        }

        public Criteria andCargoIsXcheckIn(List<Integer> values) {
            addCriterion("cargo_is_xcheck in", values, "cargoIsXcheck");
            return (Criteria) this;
        }

        public Criteria andCargoIsXcheckNotIn(List<Integer> values) {
            addCriterion("cargo_is_xcheck not in", values, "cargoIsXcheck");
            return (Criteria) this;
        }

        public Criteria andCargoIsXcheckBetween(Integer value1, Integer value2) {
            addCriterion("cargo_is_xcheck between", value1, value2, "cargoIsXcheck");
            return (Criteria) this;
        }

        public Criteria andCargoIsXcheckNotBetween(Integer value1, Integer value2) {
            addCriterion("cargo_is_xcheck not between", value1, value2, "cargoIsXcheck");
            return (Criteria) this;
        }

        public Criteria andOrderStateIsNull() {
            addCriterion("order_state is null");
            return (Criteria) this;
        }

        public Criteria andOrderStateIsNotNull() {
            addCriterion("order_state is not null");
            return (Criteria) this;
        }

        public Criteria andOrderStateEqualTo(Integer value) {
            addCriterion("order_state =", value, "orderState");
            return (Criteria) this;
        }

        public Criteria andOrderStateNotEqualTo(Integer value) {
            addCriterion("order_state <>", value, "orderState");
            return (Criteria) this;
        }

        public Criteria andOrderStateGreaterThan(Integer value) {
            addCriterion("order_state >", value, "orderState");
            return (Criteria) this;
        }

        public Criteria andOrderStateGreaterThanOrEqualTo(Integer value) {
            addCriterion("order_state >=", value, "orderState");
            return (Criteria) this;
        }

        public Criteria andOrderStateLessThan(Integer value) {
            addCriterion("order_state <", value, "orderState");
            return (Criteria) this;
        }

        public Criteria andOrderStateLessThanOrEqualTo(Integer value) {
            addCriterion("order_state <=", value, "orderState");
            return (Criteria) this;
        }

        public Criteria andOrderStateIn(List<Integer> values) {
            addCriterion("order_state in", values, "orderState");
            return (Criteria) this;
        }

        public Criteria andOrderStateNotIn(List<Integer> values) {
            addCriterion("order_state not in", values, "orderState");
            return (Criteria) this;
        }

        public Criteria andOrderStateBetween(Integer value1, Integer value2) {
            addCriterion("order_state between", value1, value2, "orderState");
            return (Criteria) this;
        }

        public Criteria andOrderStateNotBetween(Integer value1, Integer value2) {
            addCriterion("order_state not between", value1, value2, "orderState");
            return (Criteria) this;
        }

        public Criteria andCargoPayIsNull() {
            addCriterion("cargo_pay is null");
            return (Criteria) this;
        }

        public Criteria andCargoPayIsNotNull() {
            addCriterion("cargo_pay is not null");
            return (Criteria) this;
        }

        public Criteria andCargoPayEqualTo(Float value) {
            addCriterion("cargo_pay =", value, "cargoPay");
            return (Criteria) this;
        }

        public Criteria andCargoPayNotEqualTo(Float value) {
            addCriterion("cargo_pay <>", value, "cargoPay");
            return (Criteria) this;
        }

        public Criteria andCargoPayGreaterThan(Float value) {
            addCriterion("cargo_pay >", value, "cargoPay");
            return (Criteria) this;
        }

        public Criteria andCargoPayGreaterThanOrEqualTo(Float value) {
            addCriterion("cargo_pay >=", value, "cargoPay");
            return (Criteria) this;
        }

        public Criteria andCargoPayLessThan(Float value) {
            addCriterion("cargo_pay <", value, "cargoPay");
            return (Criteria) this;
        }

        public Criteria andCargoPayLessThanOrEqualTo(Float value) {
            addCriterion("cargo_pay <=", value, "cargoPay");
            return (Criteria) this;
        }

        public Criteria andCargoPayIn(List<Float> values) {
            addCriterion("cargo_pay in", values, "cargoPay");
            return (Criteria) this;
        }

        public Criteria andCargoPayNotIn(List<Float> values) {
            addCriterion("cargo_pay not in", values, "cargoPay");
            return (Criteria) this;
        }

        public Criteria andCargoPayBetween(Float value1, Float value2) {
            addCriterion("cargo_pay between", value1, value2, "cargoPay");
            return (Criteria) this;
        }

        public Criteria andCargoPayNotBetween(Float value1, Float value2) {
            addCriterion("cargo_pay not between", value1, value2, "cargoPay");
            return (Criteria) this;
        }

        public Criteria andCargoUpdateTimeIsNull() {
            addCriterion("cargo_update_time is null");
            return (Criteria) this;
        }

        public Criteria andCargoUpdateTimeIsNotNull() {
            addCriterion("cargo_update_time is not null");
            return (Criteria) this;
        }

        public Criteria andCargoUpdateTimeEqualTo(String value) {
            addCriterion("cargo_update_time =", value, "cargoUpdateTime");
            return (Criteria) this;
        }

        public Criteria andCargoUpdateTimeNotEqualTo(String value) {
            addCriterion("cargo_update_time <>", value, "cargoUpdateTime");
            return (Criteria) this;
        }

        public Criteria andCargoUpdateTimeGreaterThan(String value) {
            addCriterion("cargo_update_time >", value, "cargoUpdateTime");
            return (Criteria) this;
        }

        public Criteria andCargoUpdateTimeGreaterThanOrEqualTo(String value) {
            addCriterion("cargo_update_time >=", value, "cargoUpdateTime");
            return (Criteria) this;
        }

        public Criteria andCargoUpdateTimeLessThan(String value) {
            addCriterion("cargo_update_time <", value, "cargoUpdateTime");
            return (Criteria) this;
        }

        public Criteria andCargoUpdateTimeLessThanOrEqualTo(String value) {
            addCriterion("cargo_update_time <=", value, "cargoUpdateTime");
            return (Criteria) this;
        }

        public Criteria andCargoUpdateTimeIn(List<Date> values) {
            addCriterion("cargo_update_time in", values, "cargoUpdateTime");
            return (Criteria) this;
        }

        public Criteria andCargoUpdateTimeNotIn(List<Date> values) {
            addCriterion("cargo_update_time not in", values, "cargoUpdateTime");
            return (Criteria) this;
        }

        public Criteria andCargoUpdateTimeBetween(String value1, String value2) {
            addCriterion("cargo_update_time between", value1, value2, "cargoUpdateTime");
            return (Criteria) this;
        }

        public Criteria andCargoUpdateTimeNotBetween(String value1, String value2) {
            addCriterion("cargo_update_time not between", value1, value2, "cargoUpdateTime");
            return (Criteria) this;
        }

        public Criteria andCargoInsTimeIsNull() {
            addCriterion("cargo_ins_time is null");
            return (Criteria) this;
        }

        public Criteria andCargoInsTimeIsNotNull() {
            addCriterion("cargo_ins_time is not null");
            return (Criteria) this;
        }

        public Criteria andCargoInsTimeEqualTo(String value) {
            addCriterion("cargo_ins_time =", value, "cargoInsTime");
            return (Criteria) this;
        }

        public Criteria andCargoInsTimeNotEqualTo(String value) {
            addCriterion("cargo_ins_time <>", value, "cargoInsTime");
            return (Criteria) this;
        }

        public Criteria andCargoInsTimeGreaterThan(String value) {
            addCriterion("cargo_ins_time >", value, "cargoInsTime");
            return (Criteria) this;
        }

        public Criteria andCargoInsTimeGreaterThanOrEqualTo(String value) {
            addCriterion("cargo_ins_time >=", value, "cargoInsTime");
            return (Criteria) this;
        }

        public Criteria andCargoInsTimeLessThan(String value) {
            addCriterion("cargo_ins_time <", value, "cargoInsTime");
            return (Criteria) this;
        }

        public Criteria andCargoInsTimeLessThanOrEqualTo(String value) {
            addCriterion("cargo_ins_time <=", value, "cargoInsTime");
            return (Criteria) this;
        }

        public Criteria andCargoInsTimeIn(List<Date> values) {
            addCriterion("cargo_ins_time in", values, "cargoInsTime");
            return (Criteria) this;
        }

        public Criteria andCargoInsTimeNotIn(List<Date> values) {
            addCriterion("cargo_ins_time not in", values, "cargoInsTime");
            return (Criteria) this;
        }

        public Criteria andCargoInsTimeBetween(String value1, String value2) {
            addCriterion("cargo_ins_time between", value1, value2, "cargoInsTime");
            return (Criteria) this;
        }

        public Criteria andCargoInsTimeNotBetween(String value1, String value2) {
            addCriterion("cargo_ins_time not between", value1, value2, "cargoInsTime");
            return (Criteria) this;
        }

        public Criteria andCargoIsDeleteIsNull() {
            addCriterion("cargo_is_delete is null");
            return (Criteria) this;
        }

        public Criteria andCargoIsDeleteIsNotNull() {
            addCriterion("cargo_is_delete is not null");
            return (Criteria) this;
        }

        public Criteria andCargoIsDeleteEqualTo(Integer value) {
            addCriterion("cargo_is_delete =", value, "cargoIsDelete");
            return (Criteria) this;
        }

        public Criteria andCargoIsDeleteNotEqualTo(Integer value) {
            addCriterion("cargo_is_delete <>", value, "cargoIsDelete");
            return (Criteria) this;
        }

        public Criteria andCargoIsDeleteGreaterThan(Integer value) {
            addCriterion("cargo_is_delete >", value, "cargoIsDelete");
            return (Criteria) this;
        }

        public Criteria andCargoIsDeleteGreaterThanOrEqualTo(Integer value) {
            addCriterion("cargo_is_delete >=", value, "cargoIsDelete");
            return (Criteria) this;
        }

        public Criteria andCargoIsDeleteLessThan(Integer value) {
            addCriterion("cargo_is_delete <", value, "cargoIsDelete");
            return (Criteria) this;
        }

        public Criteria andCargoIsDeleteLessThanOrEqualTo(Integer value) {
            addCriterion("cargo_is_delete <=", value, "cargoIsDelete");
            return (Criteria) this;
        }

        public Criteria andCargoIsDeleteIn(List<Integer> values) {
            addCriterion("cargo_is_delete in", values, "cargoIsDelete");
            return (Criteria) this;
        }

        public Criteria andCargoIsDeleteNotIn(List<Integer> values) {
            addCriterion("cargo_is_delete not in", values, "cargoIsDelete");
            return (Criteria) this;
        }

        public Criteria andCargoIsDeleteBetween(Integer value1, Integer value2) {
            addCriterion("cargo_is_delete between", value1, value2, "cargoIsDelete");
            return (Criteria) this;
        }

        public Criteria andCargoIsDeleteNotBetween(Integer value1, Integer value2) {
            addCriterion("cargo_is_delete not between", value1, value2, "cargoIsDelete");
            return (Criteria) this;
        }

        public Criteria andCargoTypeNameIsNull() {
            addCriterion("cargo_type_name is null");
            return (Criteria) this;
        }

        public Criteria andCargoTypeNameIsNotNull() {
            addCriterion("cargo_type_name is not null");
            return (Criteria) this;
        }

        public Criteria andCargoTypeNameEqualTo(String value) {
            addCriterion("cargo_type_name =", value, "cargoTypeName");
            return (Criteria) this;
        }

        public Criteria andCargoTypeNameNotEqualTo(String value) {
            addCriterion("cargo_type_name <>", value, "cargoTypeName");
            return (Criteria) this;
        }

        public Criteria andCargoTypeNameGreaterThan(String value) {
            addCriterion("cargo_type_name >", value, "cargoTypeName");
            return (Criteria) this;
        }

        public Criteria andCargoTypeNameGreaterThanOrEqualTo(String value) {
            addCriterion("cargo_type_name >=", value, "cargoTypeName");
            return (Criteria) this;
        }

        public Criteria andCargoTypeNameLessThan(String value) {
            addCriterion("cargo_type_name <", value, "cargoTypeName");
            return (Criteria) this;
        }

        public Criteria andCargoTypeNameLessThanOrEqualTo(String value) {
            addCriterion("cargo_type_name <=", value, "cargoTypeName");
            return (Criteria) this;
        }

        public Criteria andCargoTypeNameLike(String value) {
            addCriterion("cargo_type_name like", value, "cargoTypeName");
            return (Criteria) this;
        }

        public Criteria andCargoTypeNameNotLike(String value) {
            addCriterion("cargo_type_name not like", value, "cargoTypeName");
            return (Criteria) this;
        }

        public Criteria andCargoTypeNameIn(List<String> values) {
            addCriterion("cargo_type_name in", values, "cargoTypeName");
            return (Criteria) this;
        }

        public Criteria andCargoTypeNameNotIn(List<String> values) {
            addCriterion("cargo_type_name not in", values, "cargoTypeName");
            return (Criteria) this;
        }

        public Criteria andCargoTypeNameBetween(String value1, String value2) {
            addCriterion("cargo_type_name between", value1, value2, "cargoTypeName");
            return (Criteria) this;
        }

        public Criteria andCargoTypeNameNotBetween(String value1, String value2) {
            addCriterion("cargo_type_name not between", value1, value2, "cargoTypeName");
            return (Criteria) this;
        }

        public Criteria andCargoPicOneIsNull() {
            addCriterion("cargo_pic_one is null");
            return (Criteria) this;
        }

        public Criteria andCargoPicOneIsNotNull() {
            addCriterion("cargo_pic_one is not null");
            return (Criteria) this;
        }

        public Criteria andCargoPicOneEqualTo(String value) {
            addCriterion("cargo_pic_one =", value, "cargoPicOne");
            return (Criteria) this;
        }

        public Criteria andCargoPicOneNotEqualTo(String value) {
            addCriterion("cargo_pic_one <>", value, "cargoPicOne");
            return (Criteria) this;
        }

        public Criteria andCargoPicOneGreaterThan(String value) {
            addCriterion("cargo_pic_one >", value, "cargoPicOne");
            return (Criteria) this;
        }

        public Criteria andCargoPicOneGreaterThanOrEqualTo(String value) {
            addCriterion("cargo_pic_one >=", value, "cargoPicOne");
            return (Criteria) this;
        }

        public Criteria andCargoPicOneLessThan(String value) {
            addCriterion("cargo_pic_one <", value, "cargoPicOne");
            return (Criteria) this;
        }

        public Criteria andCargoPicOneLessThanOrEqualTo(String value) {
            addCriterion("cargo_pic_one <=", value, "cargoPicOne");
            return (Criteria) this;
        }

        public Criteria andCargoPicOneLike(String value) {
            addCriterion("cargo_pic_one like", value, "cargoPicOne");
            return (Criteria) this;
        }

        public Criteria andCargoPicOneNotLike(String value) {
            addCriterion("cargo_pic_one not like", value, "cargoPicOne");
            return (Criteria) this;
        }

        public Criteria andCargoPicOneIn(List<String> values) {
            addCriterion("cargo_pic_one in", values, "cargoPicOne");
            return (Criteria) this;
        }

        public Criteria andCargoPicOneNotIn(List<String> values) {
            addCriterion("cargo_pic_one not in", values, "cargoPicOne");
            return (Criteria) this;
        }

        public Criteria andCargoPicOneBetween(String value1, String value2) {
            addCriterion("cargo_pic_one between", value1, value2, "cargoPicOne");
            return (Criteria) this;
        }

        public Criteria andCargoPicOneNotBetween(String value1, String value2) {
            addCriterion("cargo_pic_one not between", value1, value2, "cargoPicOne");
            return (Criteria) this;
        }

        public Criteria andCargoPicTwoIsNull() {
            addCriterion("cargo_pic_two is null");
            return (Criteria) this;
        }

        public Criteria andCargoPicTwoIsNotNull() {
            addCriterion("cargo_pic_two is not null");
            return (Criteria) this;
        }

        public Criteria andCargoPicTwoEqualTo(String value) {
            addCriterion("cargo_pic_two =", value, "cargoPicTwo");
            return (Criteria) this;
        }

        public Criteria andCargoPicTwoNotEqualTo(String value) {
            addCriterion("cargo_pic_two <>", value, "cargoPicTwo");
            return (Criteria) this;
        }

        public Criteria andCargoPicTwoGreaterThan(String value) {
            addCriterion("cargo_pic_two >", value, "cargoPicTwo");
            return (Criteria) this;
        }

        public Criteria andCargoPicTwoGreaterThanOrEqualTo(String value) {
            addCriterion("cargo_pic_two >=", value, "cargoPicTwo");
            return (Criteria) this;
        }

        public Criteria andCargoPicTwoLessThan(String value) {
            addCriterion("cargo_pic_two <", value, "cargoPicTwo");
            return (Criteria) this;
        }

        public Criteria andCargoPicTwoLessThanOrEqualTo(String value) {
            addCriterion("cargo_pic_two <=", value, "cargoPicTwo");
            return (Criteria) this;
        }

        public Criteria andCargoPicTwoLike(String value) {
            addCriterion("cargo_pic_two like", value, "cargoPicTwo");
            return (Criteria) this;
        }

        public Criteria andCargoPicTwoNotLike(String value) {
            addCriterion("cargo_pic_two not like", value, "cargoPicTwo");
            return (Criteria) this;
        }

        public Criteria andCargoPicTwoIn(List<String> values) {
            addCriterion("cargo_pic_two in", values, "cargoPicTwo");
            return (Criteria) this;
        }

        public Criteria andCargoPicTwoNotIn(List<String> values) {
            addCriterion("cargo_pic_two not in", values, "cargoPicTwo");
            return (Criteria) this;
        }

        public Criteria andCargoPicTwoBetween(String value1, String value2) {
            addCriterion("cargo_pic_two between", value1, value2, "cargoPicTwo");
            return (Criteria) this;
        }

        public Criteria andCargoPicTwoNotBetween(String value1, String value2) {
            addCriterion("cargo_pic_two not between", value1, value2, "cargoPicTwo");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}